package org.wu.acw.client.nocode.provider.infrastructure.converter;

import org.wu.acw.client.nocode.provider.infrastructure.entity.InterfaceInfoDO;
import org.wu.acw.client.nocode.provider.model.interface_.info.InterfaceInfo;
import org.wu.framework.core.mapper.LazyStructMapper;
import org.wu.framework.core.mapper.LazyStructMappers;
import org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter;

/**
 * describe Dataway 中的API
 *
 * @author Jia wei Wu
 * @date 2023/08/11 05:26 下午
 * @see DefaultDDDLazyInfrastructureConverter
 **/
@LazyStructMapper()
public interface InterfaceInfoConverter {
    InterfaceInfoConverter INSTANCE = LazyStructMappers.getMapper(InterfaceInfoConverter.class);



    /**
     * describe 实体对象 转换成领域对象
     *
     * @param
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2023/08/11 05:26 下午
     **/
    InterfaceInfo toInterfaceInfo(InterfaceInfoDO interfaceInfoDO);

    /**
     * describe 领域对象 转换成实体对象
     *
     * @param
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2023/08/11 05:26 下午
     **/
    InterfaceInfoDO fromInterfaceInfo(InterfaceInfo interfaceInfo);

}